﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;

namespace SmartBoard.Book.Dialogs
{
    /// <summary>
    /// Interaction logic for CreateNewBookDialog.xaml
    /// </summary>
    public partial class CreateNewBookDialog : Window, ICreateNewBookUIPresenter
    {
        public CreateNewBookDialog()
        {
            InitializeComponent();
            this.BookName = "Untitled 1";
            this.PageCount = 100;
            this.DataContext = this;
        }

        public string BookName { get; set; }
        public int PageCount { get; set; }

        private void HandleCancel(object sender, RoutedEventArgs e)
        {
            this.DialogResult = false;
        }

        private void HandleOK(object sender, RoutedEventArgs e)
        {
            this.DialogResult = true;
        }

        public bool? PresentUI()
        {
            return ShowDialog();
        }
    }
}
